package com.xixi.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xixi.pojo.dto.LoginUserDTO;
import com.xixi.pojo.dto.UserDTO;
import com.xixi.pojo.query.UserQueryPage;
import com.xixi.pojo.vo.Result;
import com.xixi.pojo.vo.UserVO;
import jakarta.servlet.http.HttpSession;

import java.util.List;

public interface UserService {
    Result sendCode(String phone, HttpSession session);


    LoginUserDTO userLogin(LoginUserDTO loginUserDTO);

    List<UserVO> list();

    UserVO getUserById(Integer id);

    IPage<UserVO> getUserPage(UserQueryPage userQueryPage);

    Result insert(UserDTO userDTO);

    Result update(UserDTO userDTO);

    Result delete(List<Integer> ids);
}
